﻿<%@ Page Language="C#" MasterPageFile="HomePage.master" AutoEventWireup="true" CodeFile="Kq-Timkiem.aspx.cs"
    Inherits="Kq_Timkiem" %>

<%@ Register TagPrefix="cc1" Namespace="CutePager" Assembly="PagerControl" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title><asp:Literal runat="server" ID="litTukhoa" EnableViewState="False"></asp:Literal>
        -
        <%=Common.home %></title>
    <link href="CSS/style-tintuc.css" rel="stylesheet" type="text/css" />    
    <link href="CSS/style-chitietdd.css" rel="stylesheet" type="text/css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="container">
        <div class="gioi-thieu">
            <div class="container-fluid">
                <div class="span8">
                    <div class="tieude-km">
                        <asp:HyperLink runat="server" ID="linkHome" NavigateUrl="~/"><span class="icon-home icon-white"></span></asp:HyperLink>
                        Kết quả tìm kiếm <span class="icon-arrow-right icon-white"></span>
                        <asp:Label runat="server" ID="lbSubtin" Visible="False"></asp:Label>
                    </div>
                    <!-- 10 bai viet / 1 page -->
                    <asp:UpdatePanel runat="server" ID="updatePanel1" UpdateMode="Conditional">
                        <ContentTemplate>
                            <asp:DataList runat="server" ID="dlTimkiem" RepeatLayout="Flow" RepeatColumns="1" RepeatDirection="Vertical">
                                <ItemTemplate>
                                    <div class="tintuc-km">
                                        <div class="tintuc-km-element">
                                            <div class="content-km">
                                                <div class="img-km">
                                                    <asp:Image runat="server" ID="imgKm" ToolTip='<%#Eval("TenDiaDiem") %>' AlternateText='<%#Eval("TenDiaDiem") %>' ImageUrl='<%# Common.sPathUpChuyenMucThumbail + Eval("AnhDaiDien")%>' />
                                                </div>
                                                <div class="body-km">
                                                    <h1>
                                                        <asp:HyperLink runat="server" ID="HyperLink1" NavigateUrl='<%# "~/" + Eval("Id") + "_" + GetTieuDe(Eval("TenDiaDiem")) + "_diadiem.aspx" %>'>
                                                        <%#Eval("TenDiaDiem") %>
                                                        </asp:HyperLink>
                                                    </h1>
                                                    <p class="thoigian-km">
                                                        <span class="icon-calendar"></span>
                                                        <%#Eval("NgayCapNhat") %>
                                                        <span class="icon-user"></span>
                                                        <%#Eval("TacGia") %>
                                                    </p>
                                                    <p>
                                                        <%# FormatString(Eval("TomTat").ToString(), 120)%>
                                                    </p>
                                                    <p class="xem-them">
                                                        <asp:HyperLink runat="server" CssClass="btn btn-success" ID="linkChitiet" NavigateUrl='<%# "~/" + Eval("Id") + "_" + GetTieuDe(Eval("TenDiaDiem")) + "_diadiem.aspx"  %>'>Xem thêm</asp:HyperLink>
                                                    </p>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </ItemTemplate>
                            </asp:DataList>
                            <div class="phantrang pagination pagination-mini pagination-right pagination-small pull-right">
                                <cc1:Pager ID="Pager1" runat="server" PreviousClause="Lùi" NextClause="Tiếp" LastClause="Cuối"
                                    FirstClause="Đầu" PageClause="<html><b>Trang </b></html>" ShowResultClause="Hiển thị từ"
                                    ShowingResultClause="Đang hiển thị từ" BackToPageClause="Quay lại trang" OfClause=" / "
                                    PageSize="10" OnCommand="Pager1_Command" ForeColor="#CC0000" Font-Bold="True" />
                            </div>
                        </ContentTemplate>
                    </asp:UpdatePanel>
                    <!-- 10 bai viet / 1 page -->
                </div>
                <div class="span3">
                    <div class="theloai-khuyenmai">
                        <div class="tieude-dkmt">
                            <h1><span class="icon-file icon-white"></span>Thể loại</h1></div>                        
                    </div>
                    <div class="quang-cao-right">
                        <div class="tieude-dkmt">
                            <h1><span class="icon-file icon-white"></span>Quảng cáo</h1></div>
                        <dx:QuangcaoRight runat="server" ID="quangcao" />
                    </div>
                </div>
            </div>
        </div>
    </div>
</asp:Content>
